package com.meltingslime.asciifight.client;

import com.meltingslime.asciifight.Logger;
import org.fusesource.jansi.AnsiConsole;

/**
 * @author Exit93
 * @version 1.0
 */
public class ASCIIFight {
    private static Logger log;
    public static Logger getLoggerInstance(){
        return log;
    }
    public static enum GamePhase{
        LobbyPhase(0),
        BuyPhase(1),
        GamePhase(2);
        private final int id;
        GamePhase(int id)
        {
            this.id = id;
        }
    }
    private static GamePhase _gamePhase;
    public GamePhase GetGamePhase()
    {
        return _gamePhase;
    }
    public static void SetGamePhase(GamePhase gamePhase)
    {
        _gamePhase = gamePhase;
        // TODO Handle it
    }

    public static void main (String[] args){
        AnsiConsole.systemInstall();
        log = new Logger("E:\\AsciiFight\\out\\artifacts\\ASCII_Fight_jar\\test.txt");
        System.out.println("ASCII Fight");
        _gamePhase = GamePhase.LobbyPhase;
        log.WriteLine("osdhfoudshfdus");
    }
}
